
function daifukuan(obj){
	addBackground(obj);
	disPlayNone();
	$('.dfukuan_class').show();
	
}

function daishouhuo(obj){
	disPlayNone();
	addBackground(obj);
	$('.daishouhuo_class').show();
	
}

function yijieshu(obj){
	disPlayNone();
	addBackground(obj);
	$('.yijieshu_class').show();
}

function addBackground(obj){
	$('.tabClass tr th').each(function(){
		$(this).removeClass('current_th');
	});
	$(obj).addClass('current_th');
}

function disPlayNone(){
	$('.dfukuan_class').css('display','none');
	$('.daishouhuo_class').css('display','none');
	$('.yijieshu_class').css('display','none');
}

 
function viewGood(id){
	var param = "?id="+id;
	location.href="viewGood.xhtml"+param;
}
//付款
function fukuan(orderId){	
	
//	$('#orderFrom_'+orderId).ajaxSubmit({
//	});
	var success = true;
	if(success){
		var param = "?id="+orderId;
		$.ajax({
			url:'fukuanSuccess.xhtml'+param,
			type:'post',
			dataType:'json',
			success:function(json){
				if(json.success){
					location.href="myOrder.xhtml";
				}
			}
		});
	}
}
//收货
function shouHou(orderId){
	var param = "?id="+orderId;
	$.ajax({
		url:'shouHuo.xhtml'+param,
		type:'post',
		dataType:'json',
		success:function(json){
			if(json.success){
				location.href="myOrder.xhtml"
			}
		}
	});
}